﻿#ifndef LOGINDLG_H
#define LOGINDLG_H

#include <QDialog>
#include <QPushButton>
#include <QLineEdit>
#include <QLabel>

class LoginDlg : public QDialog
{
    Q_OBJECT

public:
    explicit LoginDlg(bool auth = false, QWidget* parent = 0);
    ~LoginDlg();

public slots:
    void login();
    void authorize();
    void exit();
    void switchUser();

private:
    QPushButton     btnLogin;
    QPushButton     btnExit;
    QLabel          labelUserName;
    QLabel          labelPassword;
    QLineEdit       editUserName;
    QLineEdit       editPassword;
};

#endif /* LOGINDLG_H */
